//
//  MCGridMenuView.h
//  MClient
//
//  Created by zhouyi on 10-11-2.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MServerJsonDAO;
@interface MCGridMenuCell : UIButton <MCServer2ViewDelegate>{
	UIImageView *icon;
	UILabel     *badgeValue;
	UILabel     *btnLabel;

	NSString*  _iconName;
	NSMutableDictionary *_menuData;
	MServerJsonDAO*  _jsonDao;
}

@property(nonatomic, retain)NSString*  iconName;
@property(nonatomic, assign)NSString*  menuText;
@property(nonatomic, retain)NSMutableDictionary*  menuData;

- (id)initWithFrame:(CGRect)frame withTarget:(id)deleg withSelector:(SEL)select;
@end


#define kTagBase   1000

@interface MCGridMenuView : UIScrollView
{
	id             _menuDelegate;
	SEL            _menuSelector;
	int            _selected;
	int            _selectedTimer;
	NSArray       *_menuData;
	bool		   _isApp;
}

@property(nonatomic,assign) id             menuDelegate;  
@property(nonatomic,assign) SEL            menuSelector; 
@property(nonatomic,assign) int            selected;
@property(nonatomic,assign) NSArray*       menuData;
@property(nonatomic,assign) bool		   isApp;

@end